<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:c="http://java.sun.com/jsp/jstl/core">

<f:view locale="#{internationalisationManagedBean.langue}">
<h:head>
<title><ui:insert name="title" />E-book'tique</title>
<h:outputStylesheet  name="stylesheet.css" library="css"/>
</h:head>

<h:body>
	<div id="global">
		<div id="center">
		<h1 class="title ui-widget-header ui-corner-all">
			<h:outputText value="#{msg['connection.title']}" />
		</h1>
		
		<h:form>
			<p:panel header="#{msg['connection.panel.title']}">
				<p:messages autoUpdate="true" globalOnly="true" showDetail="true" />
				<h:panelGrid columns="2">  
		            <h:outputText value="#{msg['connection.identifiant']}" required="true" label="" />
		            <p:inputText value="#{connexionManagedBean.identifiant}" style="width:90%;" />
		            <h:outputText value="#{msg['connection.motDePasse']}" required="true" label="" />
		            <p:password value="#{connexionManagedBean.password}" style="width:90%;" />
		            <h:outputText value="#{msg['right.rememberMe']}" />
	            	<h:selectBooleanCheckbox value="#{connexionManagedBean.rememberMe}" />
		            <p:commandLink action="#{connexionManagedBean.rejectRestrictedAccess}" value="#{msg['connection.annuler']}" ajax="false"/>  
		            <p:commandButton action="#{connexionManagedBean.connectToOldView}" value="#{msg['connection.connexion']}" ajax="false"/>  
		    	</h:panelGrid>
		    	<h:link value="#{msg['connection.inscription']}" outcome="registration" /> 
			</p:panel>
		</h:form>
		</div>
	</div>
</h:body>
</f:view>
</html>